// 招募相关接口
import request from '@/utils/request'

// 查询会员招募列表
export function customerRecruitList(query) {
    return request({
        url: '/biz/customerRecruit/list',
        method: 'get',
        params: query
    })
}

// 根据Id查询
export function customerRecruitQueryById(query) {
    return request({
        url: '/biz/customerRecruit/queryById',
        method: 'get',
        params: query
    })
}

// 保存
export function customerRecruitSave(data) {
    return request({
        url: '/biz/customerRecruit/save',
        method: 'post',
        data
    })
}

// 修改
export function customerRecruitUpdate(data) {
    return request({
        url: '/biz/customerRecruit/update',
        method: 'put',
        data
    })
}

// 删除
export function customerRecruitDelete(id) {
    return request({
        url: `/biz/customerRecruit/delete/${id}`,
        method: 'delete',
    })
}